<template>
  <div>
    <van-button type="primary" @click="handleVuex">设置Vuex</van-button>
    <van-cell-group inset>
      <van-cell title="单元格23" value="内容" />
      <van-cell title="单元格" value="内容" label="描述信息" />
      <van-cell title="单元格33" value="内容" size="large" label="描述信息" />
    </van-cell-group>
  </div>
</template>
<script>
import { test } from "@/api";
export default {
  name: "home",
  data () {
    return {};
  },
  created () {
    this.getTest();
  },
  methods: {
    getTest () {
      test().then(res => {
        console.log(res);
      });
    },
    handleVuex () {
      this.$store.dispatch("loginByUser");
    }
  }
};
</script>
<style lang="less" scoped></style>
